﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Api.index
{
    public class DocInfo
    {
        private int docId;
        private string title;
        private string url;
        private string content;

        public DocInfo()
        {

        }

        public DocInfo(int docId, string title, string url, string content)
        {
            this.docId = docId;
            this.title = title;
            this.url = url;
            this.content = content;
        }

        public int getDocId()
        {
            return docId;
        }

        public void setDocId(int docId)
        {
            this.docId = docId;
        }

        public string getTitle()
        {
            return title;
        }

        public void setTitle(string title)
        {
            this.title = title;
        }

        public string getUrl()
        {
            return url;
        }

        public void setUrl(string url)
        {
            this.url = url;
        }

        public string getContent()
        {
            return content;
        }

        public void setContent(string content)
        {
            this.content = content;
        }

        public string toString()
        {
            return "DocInfo{" +
                    "docId=" + docId +
                    ", title='" + title + '\'' +
                    ", url='" + url + '\'' +
                    ", content='" + content + '\'' +
                    '}';
        }
    }
}
